﻿namespace Rio.Framework.Pages.Viewer
{
    public class Filter
    {
        public static string GetFilters(bool defaultFilters)
        {
            string filters;

            if (defaultFilters)
            {
                filters = new Format("Jpeg", "*.jpg;*.jpeg;*.jtf") + "|";
                filters += new Format("Png", "*.png");
            }
            else
            {
                filters = new Format("LEAD", "*.cmp") + "|";
                filters += new Format("Jpeg", "*.jpg;*.jpeg;*.jtf") + "|";
                filters += new Format("Cmw", "*.cmw") + "|";
                filters += new Format("Jpeg 2000", "*.j2k;*.jp2;") + "|";
                filters += new Format("Tiff", "*.tif;*.tiff") + "|";
                filters += new Format("Gif", "*.gif") + "|";
                filters += new Format("Png", "*.png") + "|";
                filters += new Format("Os/2 Bitmap", "*.bmp") + "|";
                filters += new Format("Pdf", "*.pdf");
                filters += new Format("Doc", "*.doc");
                filters += new Format("Docx", "*.docx");
                filters += new Format("Xls", "*.xls");
                filters += new Format("Xlsx", "*.xlsx");
                filters += new Format("Rtf", "*.rtf");

            }

            return filters;
        }
    }
}
